package com.muyu.vehicle.entity.request;

import com.muyu.vehicle.entity.PackageData;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author : CZQ
 * @date : 2024-09-17 14:52
 * @description :
 **/
@ToString
@NoArgsConstructor
@Data
public class AuthMsg extends PackageData {

    public AuthMsg(PackageData packageData) {
        this();
        this.channel = packageData.getChannel();
        this.checkSum = packageData.getCheckSum();
        this.msgBodyBytes = packageData.getMsgBodyBytes();
        this.msgHeader = packageData.getMsgHeader();
    }

    private AuthInfo authInfo;

    @Data
    @ToString
    @NoArgsConstructor
    public static class AuthInfo {

        private int length;

        private String replyToken;

        private String imei;

        private String version;

    }

}
